<?php
namespace Home\Model;
use Think\Model\ViewModel;

//检测题目的权限专用的
class CheckQuestionViewModel extends ViewModel{
    protected $viewFields = array(
        "course"=>array("cou_id","teacher_tea_id"),
        "class"=>array(
            "cla_id"=>"cla_id",
            '_on'=>'class.cou_id=course.cou_id'
        ),
        "question_set"=>array(
            "qus_id"=>"qus_id",
            '_on'=>'question_set.class_cla_id=class.cla_id'
        ),
        "question"=>array(
            "que_id"=>"que_id",
            "_on"=>"question.qus_id=question_set.qus_id"
        )
    );
}